<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改公司')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-company-edit" th:object="${company}">
            <input name="id" th:field="*{id}" type="hidden">
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">用户ID：</label>-->
<!--                <div class="col-sm-8">-->
                    <input name="memberId" th:field="*{memberId}" class="form-control" type="hidden">
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">公司头像：</label>-->
<!--                <div class="col-sm-8">-->
                    <input name="companyAvatar" th:field="*{companyAvatar}" class="form-control" type="hidden">
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">关联用户：</label>
            <div class="col-sm-8">
                <select name="sysUserId" class="form-control m-b">
                    <option>请选择关联用户</option>
                    <option th:each="dict : ${users}" th:text="${dict.userName}" th:value="${dict.userId}" th:field="*{sysUserId}"></option>
                </select>
            </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">公司名称：</label>-->
<!--                <div class="col-sm-8">-->
                    <input name="companyName" th:field="*{companyName}" class="form-control" type="hidden">
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">公司地址：</label>-->
<!--                <div class="col-sm-8">-->
                    <input name="companyAddr" th:field="*{companyAddr}" class="form-control" type="hidden">
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">企业电话：</label>-->
<!--                <div class="col-sm-8">-->
                    <input name="companyPhone" th:field="*{companyPhone}" class="form-control" type="hidden">
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "jiaqin/company";
        $("#form-company-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/relation", $('#form-company-edit').serialize());
            }
        }
    </script>
</body>
</html>
